-
-
Notifications
You must be signed in to change notification settings - Fork 7k
fix for issue #1295 "leonardo as keyboard does not wake windows 7 from sleep" #1488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…via System Controls. Implemented in Keyboard_::systemControl().
…sible to send other keys than just ASCII
The Keyboard.pressRaw() and Keyboard.releaseRaw() are redundant to #1391 where I rewrote the whole methods to handle some other issues as well. |
Hi Kenneth, On 18.07.2013, at 09:49, Kenneth Newwood [email protected] wrote:
One issue still remains: the HID report defines only usages and a logical maximum of 0x65, so the usages above 0x65 (e.g. KEYCODE_POWER) can not be used. I changed this also in my patch in HID.cpp:
Be careful: the logic maximum is a signed integer, therefore it needs a 16-bit integer for the value 239 instead of the 8-bit value. With Best Regards,
|
…ontained in the fix for issue arduino#1391 and the code was redundant
… as requested in issue arduino#1417. all parameters have the range of -32768 to 32767 and must be scaled to screen pixels some examples: x=0, y=0 is the middle of the screen x=-32768, y=-32768 is the top left corner x=32767, y=-32768 is the top right corner x=32767, y=32767 is the bottom right corner x=-32768, y=32767 is the bottom left corner
Can I build this pull request? |
Can one of the admins verify this patch? |
This may be closed now with the new pluggable USB core. |
Right! 👍 |
This adds a new feature to fix issue #1295 "leonardo as keyboard does not wake windows 7 from sleep"
It makes it possible to wake up the PC when it is in standby mode. Use the following code in the Sketch:
USBDevice.wakeupHost();
Another feature has been added to send the PC to sleep mode:
Keyboard.systemControl(SYSTEM_CONTROL_SLEEP);
See also the discussion in the forum http://forum.arduino.cc/index.php?topic=150157
Tested by me on
Mac OSX (on a MacBook Pro)
Windows 7 (on a MacBook Pro)
Windows 8 (on a Wetab)